how to find total number of symmetric relations